/**
 * 基础
 */

var fs = require('fs');
const packageFile = JSON.parse(fs.readFileSync('./package.json'));

// 项目名称
var projectName = packageFile.projectName;
// oss 地址
var ossUrl = process.env.ossUrl;
// 远程qiankun加载路径
var publicPath = `${ossUrl}/${projectName}/dist/`;

export default {
  // 环境
  'process.env.environment': process.env.PROJECT_ENV,
  'process.env.umiEnv': process.env.UMI_ENV,
  
  // iconFont 图标地址
  'process.env.iconFontUrl': '//at.alicdn.com/t/c/font_4438498_t45vnx0naif.js',

  //oss资源配置 (这里)
  'process.env.projectName': projectName,
  'process.env.ossUrl': ossUrl,
  'process.env.publicPath': publicPath,
  //是否采用oss打包
  'process.env.ossPublicResource': process.env.ossPublicResource,
};
